/**
 * @Author lzc
 * @Date 2022/7/16 14:30
 */
public class Demo1 {
    public static void main(String[] args) {
        String s = "id,name,category1_id";
    
//        System.out.println(s.replaceAll(",", " varchar,"));
        System.out.println(s.replaceAll("[^,]+", "$0 varchar"));
    }
}
